home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm6_3_3
- Caption = "Write Backwards"
- ClientHeight = 1710
- ClientLeft = 1545
- ClientTop = 1755
- ClientWidth = 3240
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1710
- ScaleWidth = 3240
- Begin VB.TextBox txtWord
- Height = 285
- Left = 720
- TabIndex = 0
- Top = 210
- Width = 2415
- End
- Begin VB.CommandButton cmdReverse
- Caption = "Reverse Letters"
- Height = 495
- Left = 120
- TabIndex = 1
- Top = 720
- Width = 3015
- End
- Begin VB.PictureBox picTranspose
- Height = 255
- Left = 360
- ScaleHeight = 195
- ScaleWidth = 2475
- TabIndex = 2
- Top = 1320
- Width = 2535
- End
- Begin VB.Label lblWord
- Alignment = 1 'Right Justify
- Caption = "Enter Word"
- Height = 495
- Left = 0
- TabIndex = 3
- Top = 120
- Width = 615
- End
- Attribute VB_Name = "frm6_3_3"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdReverse_Click()
- picTranspose.Cls
- picTranspose.Print Reverse(txtWord.Text)
- End Sub
- Private Function Reverse(info As String) As String
- Dim m As Integer, j As Integer, temp As String
- m = Len(info)
- temp = ""
- For j = m To 1 Step -1
- temp = temp + Mid(info, j, 1)
- Next j
- Reverse = temp
- End Function
-